package com.lv.service.dialog

import android.content.Context
import android.graphics.Bitmap
import android.widget.ImageView
import android.widget.TextView
import com.lv.common.utils.*
import com.lv.service.R
import com.lxj.xpopup.core.CenterPopupView

/**
 * 作者： ygx
 * 创建日期：2022/10/10 10:32 AM
 * 签名： 天行健，君子以自强不息；地势坤，君子以厚德载物。
 * -    _              _           _     _   ____  _             _ _
 * -   / \   _ __   __| |_ __ ___ (_) __| | / ___|| |_ _   _  __| (_) ___
 * -  / _ \ | '_ \ / _` | '__/ _ \| |/ _` | \___ \| __| | | |/ _` | |/ _ \
 * - / ___ \| | | | (_| | | | (_) | | (_| |  ___) | |_| |_| | (_| | | (_) |
 * -/_/   \_\_| |_|\__,_|_|  \___/|_|\__,_| |____/ \__|\__,_|\__,_|_|\___/
 *
 *
 * You never know what you can do until you try !
 * ----------------------------------------------------------------
 * 描述：
 */
class ShowCenterTextPopupView(
    private val mContext: Context,
    private val mTitle: String,
    private val mContent: String
) :
    CenterPopupView(mContext) {
    private var mLogoBitmap: Bitmap? = null
    private var mCodeBitmap: Bitmap? = null
    override fun getImplLayoutId(): Int {
        return R.layout.show_center_text_popup
    }

    override fun onCreate() {
        super.onCreate()
        val tvTitle = findViewById<TextView>(R.id.tv_title)
        val tvContent = findViewById<TextView>(R.id.tv_content)
        val ivClose = findViewById<ImageView>(R.id.iv_close)
//        val clContainer = findViewById<ConstraintLayout>(R.id.cl_container)
        tvTitle.text = mTitle
        tvContent.text = mContent
        ivClose.setOnClickListener { dismiss() }


        initView()
        initEvnet()
    }


    private fun initView() {

//        tvTitle?.text = mTitle


    }

    private fun initEvnet() {


    }


    override fun onDestroy() {
        super.onDestroy()
    }

    override fun beforeDismiss() {
        super.beforeDismiss()


    }

}